package xyz.migle.sc.demo.api;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.migle.sc.demo.mapper.ChannelMapper;

@RestController
public class ChannelController {
    private static final Logger logger = LoggerFactory.getLogger(ChannelController.class);

    @Autowired
    private ChannelMapper channelMapper;
    @GetMapping("/test")
    public String arithmetic(){
        channelMapper.insert("001", "AAA");
        return "hello";
    }
}
